<@pagelet title="小页面左">
<div class="toolbar">
    <div class="btn-group" role="group">
        <button type="button" id="b1" class="btn btn-success">读取页面</button>
    </div>

    <div id="form">
        <input type="text" id="name" />
        <input type="range" id="age" />
    </div>
</div>

<script>
    var a=100;
    console.log(scope);
</script>
<script>
    pagelet(function(way){
        var data = {
            name: "Luke Skywalker",
            age: 12
        };

        dom.my({ui:{
            "#name": "name",
            "#age": "age"
        }}, data);
    });
</script>
</@pagelet>